<?php

use Illuminate\Database\Seeder;

class MenuTableSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
      
        $arr=[];
        for($i=1;$i<=130;$i++){

        	$tmp=[];
        	$tmp['menu_store_id']=$i;
            for($m=($i-1)*7+1;$m<=7*$i;$m++){
                $tmp['menu_type_id']=$m;
                for($n=1;$n<=7;$n++){
                    $tmp['menu_name']='菜'.rand(1,100);
                    $tmp['recommend_person_num']=rand(1,500);
                    $tmp['mouth_sell_num']=rand(1,300);
                    $tmp['menu_pic']='1.jpg';
                    $tmp['menu_price']=rand(3,200);
                    $arr[]=$tmp;
                    
                }
            }
        	
        	// $tmp['store_id']=rand(1,130);
        	

        	
        }

        DB::table('menu')->insert($arr);
    }
}
